home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gold Medal Software 4
/
Gold Medal Software - Volume 4 (Gold Medal) (1994).iso
/
os2
/
mdf121.arj
/
MDF_ENG.DOC
< prev
next >
Wrap
Text File
|
1994-06-12
|
11KB
|
366 lines
MDIFF - MPATCH
Release 1.21
A simply and complete software to produce and apply patches to
your programs and data files.
English manual.
(C) 1994/95 Maurizio Giunti - All rights reserved
1.INDEX
1.INDEX ........................................2
2.WHY ? ........................................3
3.WHAT MDIFF-MPATCH DOES ? .....................3
4.DOS AND OS/2 .................................3
5.LIMITS .......................................3
6.MDIFF - MDIFF2 ...............................3
7.MPATCH - MPATCH2 .............................4
8.ADVICES ......................................4
9.RIGHTS .......................................5
10.WARRANTY ....................................5
11. C++ CLASS LIBRARIES ........................5
12.HOW TO REGISTER .............................5
13.ACKNOWLEDGEMENTS ............................6
MDF V1.xx (C) 1994/95 Maurizio Giunti - 2 -
2.WHY ?
Some week ago I had to release a new version of a program written
by me: the compressed packet was about 200 KBytes, and I thought
that it was better to update the old version of the program with
a patch.I looked for patch makers/appliers programs but I did not
find any software that satisfied me. Moreover I did'nt find a
software that runs both under Dos and OS/2 2.xx.
I decided to make my own patch software and.....here it is ! 8-)
3.WHAT MDIFF-MPATCH DOES ?
MDIFF creates a binary difference between two files. With MPATCH
and the older file you can create the newer file using the the
difference file. Where is the advantage ? Easy: usually the
difference file is smaller than newer file, so it's convenient
distribute it, expecially by modem.
4.DOS AND OS/2
In the distribution packet you will find 4 executable files, 2
for Dos and 2 for OS/2 2.xx. There are no differences in
functions and usage of the different versions. Difference files
produced with MDIFF for Dos can be used with MPATCH for OS/2 2.xx
and vice-versa.
5.LIMITS
MDIFF can't work on files greater than 16 Mbytes. Moreover MDIFF
Dos version can't work on files greater than the amount of free
conventional memory of the system. OS/2 version, thanks to OS/2
flat memory model, is not affected by this limitation.
6.MDIFF - MDIFF2
MDIFF compares 2 files and stores the differences between them in
a difference file. This is the command line syntax:
MDIFF [-C<c>] [-R<r>] <OldFile> <NewFile> [<MDFfile>]
<OldFile> is the name of the older file, <NewFile> is the name of
the newer file. If you wish you can specify the name of the
difference file that MDIFF will produce, otherwise MDIFF will
create a file with the name of the newer file but with the
extension ".MDF".
To search differences between files, MDIFF use a base string of
defined lenght named Chunk. The Chunk lenght is by default 16
MDF V1.xx (C) 1994/95 Maurizio Giunti - 3 -
bytes, but you can change it, in the range 4-256, with the -C
switch followed by the desired lenght.
When MDIFF loses the synchronism between the two files being
compared, it scans the older file searching the current
chunk.This scansion is executed, by default, in a range of 8
blocks of 512 bytes each. You can change the number of the blocks
scanned, in the range 1-16, with the -R switch followed by the
desired number of blocks.
If this search fails, MDIFF tries to force synchronization
through a large range search. This range is defined as 1/16 of
the old file lenght. The second search can be disabled by
specifying -F switch on the command line.
If you specify -S switch, MDIFF will output some information
about the composition of the diff file.
7.MPATCH - MPATCH2
With the old file and the .MDF file you can rebuild the new file
running MPATCH. This is the command line syntax:
MPATCH <MDFfile> [<OldFile>] [<NewFile>]
MPATCH needs only the name of the mdf file (<MDFfile>) because it
contains the names of the other 2 files, but it's possible to
override these names by simply specifying the desired names on
the command line. MPATCH does not have any switches.
8.ADVICES
The best method to build a difference file, is to search the
chunks of the newer file in the entire older file, but this is a
very slow way to do !
MDIFF's algorithm tries to give a small diff file in the faster
way; so you are sometimes required to tune the work parameters
with the command line switches.
Let's look some tipical situations:
1. Very similar files: use a large chunk (32, 64 or more) to
reduce the size of the diff file.
2. Text files: try to use a chunk size of 32, sometimes it is
better to turn the forced sync off, with the -F switch.
3. Very large executable: try to use a larger resync range (16 or
more), with the -R switch.
MDF V1.xx (C) 1994/95 Maurizio Giunti - 4 -
9.RIGHTS
This software belongs to Shareware programs: anyone can freely
distribute and use it for a trial period of 15 days. After this
period, users that continue to use it must register their copy by
sending the registration fee to the author, Maurizio Giunti.
Users that get registered will receive a "registration key".
Anyone can re-distribute this software, but only if he/she asks
back no money, except for copy and/or shipping expenses (anyway,
these expenses must be carefully documented). Another condition
that you must follow to distribute it, is to furnish the ORIGINAL
packet always, without any modifications to the program and/or
documentation.
There is an exception: you can distribute MPATCH.EXE (or
MPATCH2.EXE) with one or more *.MDF files produced with a
REGISTERED copy of MDIFF.
10.WARRANTY
The only warranty that comes with this software is that it will
occupy disk space. I absolutely can NOT warrant you that it will
perfectly work, or that it will be your problems' resolution.
Nevertheless, I am sure that it is not a virus and does not
contain (unless infected or modified after the compilation)
Trojan-horses, backdoors and similar tricky garbage. In any case,
the author is not responsible for any damage, moral or material,
direct or indirect, derived from its usage.
11. C++ CLASS LIBRARIES
Inside this distribution packet you will find some class
libraries, for Dos and OS/2 2.xx, to build your own programs to
apply patches produced by MDIFF.
These libraries will work ONLY with *.MDF files produced by a
REGISTERED copy of MDIFF.
The distribution packet is complete with a sample source and all
the needed documentation.
12.HOW TO REGISTER
The individual registration key costs 15,000 Italian Lire. Site
licenses available on request. The key is valid for both Dos and
OS/2 version of the software. Add to this cost the expenses for
key shipping, that is 1,000 Lire for Italy and 2,000 Lire for
other countries. The registration key will be sent via mail, but
if explicitly required, it can be also sent via FAX, for Italy
only. Moreover I can send you your key via Internet e-mail, in
this case you are not requested to pay the shipping cost.
MDF V1.xx (C) 1994/95 Maurizio Giunti - 5 -
You can pay the registration fee in any way you want (i.e.
sending me 11$ U.S. via mail). Better way is using a postal
order (in Italy) or an international postal order in Italian Lire
from outside (check with your local post office), payable to the
post office of FIRENZE. The addressee of the order must be the
following:
Maurizio Giunti
Via G.B. Foggini, 24
50142 Firenze (FI)
ITALY
It is better to indicate on the order the name of the program
you want to register, your name, address and FAX number or e-
mail address (where required). For short notes, use the
appropriate space on the postal order (if present), or at best
send a e-mail to Maurizio Giunti at:
Fidonet: 2:332/102.3
Internet:Giunti@stat.ds.unifi.it
13.ACKNOWLEDGEMENTS
I'd like to shortly thanks all those who helped me to develop
this software and its documentation and all those who helped me
in beta-testing. In alphabetical order:
Andrea Baitelli
Silvia Borri
Filippo Dini
Fabrizio Fioravanti
Cristiano Guidoccio
Giovanni Lopes Pegna
Marco Maccaferri
Giuseppe Scarpi
MDF V1.xx (C) 1994/95 Maurizio Giunti - 6 -